<?php
	$lang = $sf_user->getAttribute('lang');
	$ed_keywords = $_POST['ed_keywords'];
?>
<div class="main_header">
	<div class="left logo"></div>
	<div class="right logo2"></div>
	<div class="main_header_container">							
	</div>	
	<div class="menu">
		<a href="/"><?php echo __('首页'); ?></a>
		<span>|</span>
		<a href="/help/contactus"><?php echo __('联系我们'); ?></a>
		<span>|</span>
		<a href="/help/sitemap"><?php echo __('网站地图'); ?></a>
		<span>|</span>
		<div id="setLang"><?php echo __('切换语言').'◢'; ?>
			<div class="menu">
				<span id="ch">中文</span>
				<span id="en">English</span>
			</div>
		</div>
		<form class="search_form" <?php
			if ($lang == 'ch') echo 'action="/products" ';
			else echo 'action="/products/en" ';
		?> method="post">
			<input type="text" name="ed_keywords" class="formsbox" onclick="this.value='';" value="<?php
				if ($ed_keywords) echo $ed_keywords;
				else echo __('搜索'); ?>">
			<input type="submit" value="" class="submit_btn" />			
			<div class="clear"></div>
<?php /* ?>			
			<div><a id="extended-search" href="/products"><?php echo __('高级搜索'); ?></a></div>
*/?>
		</form>
	</div>
</div>
